(function(){Nokia.CheckBox=Nokia.OptionBox.extend({initialize:function(b){var a=this;a.componentNamespace="checkbox";var c={wrapper:"div",disableLabelSelection:true};a.options=jQuery.extend(c,b);a._super.apply(a,[a.options]);a.registerData("checkbox");a._attachEvents();a._loadDefaultStatus();a.registerVibrationOn(["check","uncheck"]);a.fireCallback("create")},_attachEvents:function(){var a=this;var c=a.element;var b=a.options;var e=a.wrapper;e.bind("mouseenter.checkbox",function(f){e.addClass(a.Styles.pushedClass)});var d=function(f){a.toggle(f)};e.bind("click.checkbox",d);e.bind("mouseleave.checkbox",function(f){e.removeClass(a.Styles.pushedClass)})},toggle:function(b){var a=this;if(a.isChecked()){a.uncheck(b)}else{a.check(b)}a.fireCallback("toggle",b)},Styles:{iconClass:"nokia-checkbox-icon",labelClass:"nokia-checkbox-label",prefixBaseClass:"nokia-checkbox-",pushedClass:"nokia-checkbox-pushed",wrapperClass:"nokia-checkbox"}})})();